home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mmdf / mmdf-IIb.43 / uip / ucbmail / config.c < prev    next >
Encoding:
C/C++ Source or Header  |  1986-02-08  |  1.4 KB  |  69 lines

  1. /*
  2.  * Copyright (c) 1980 Regents of the University of California.
  3.  * All rights reserved.  The Berkeley software License Agreement
  4.  * specifies the terms and conditions for redistribution.
  5.  */
  6.  
  7. #ifndef lint
  8. static char *sccsid = "@(#)config.c    5.2 (Berkeley) 6/21/85";
  9. #endif not lint
  10.  
  11. /*
  12.  * This file contains definitions of network data used by Mail
  13.  * when replying.  See also:  configdefs.h and optim.c
  14.  */
  15.  
  16. /*
  17.  * The subterfuge with CONFIGFILE is to keep cc from seeing the
  18.  * external defintions in configdefs.h.
  19.  */
  20. #define    CONFIGFILE
  21. #include "./configdefs.h"
  22.  
  23. /*
  24.  * Set of network separator characters.
  25.  */
  26. char    *metanet = "!^:%@.";
  27.  
  28. /*
  29.  * Host table of "known" hosts.  See the comment in configdefs.h;
  30.  * not all accessible hosts need be here (fortunately).
  31.  */
  32. struct netmach netmach[] = {
  33.     EMPTY,        EMPTYID,    AN,    /* Filled in dynamically */
  34.     0,        0,        0
  35. };
  36.  
  37. /*
  38.  * Table of ordered of preferred networks.  You probably won't need
  39.  * to fuss with this unless you add a new network character (foolishly).
  40.  */
  41. struct netorder netorder[] = {
  42.     AN,    '@',
  43.     AN,    '%',
  44.     SN,    ':',
  45.     BN,    '!',
  46.     -1,    0
  47. };
  48.  
  49. /*
  50.  * Table to convert from network separator code in address to network
  51.  * bit map kind.  With this transformation, we can deal with more than
  52.  * one character having the same meaning easily.
  53.  */
  54. struct ntypetab ntypetab[] = {
  55.     '%',    AN,
  56.     '@',    AN,
  57.     ':',    SN,
  58.     '!',    BN,
  59.     '^',    BN,
  60.     0,    0
  61. };
  62.  
  63. struct nkindtab nkindtab[] = {
  64.     AN,    IMPLICIT,
  65.     BN,    EXPLICIT,
  66.     SN,    IMPLICIT,
  67.     0,    0
  68. };
  69.